
/* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

京东云httpdns OpenAPI接口
京东云httpdns OpenAPI接口

OpenAPI spec version: v1
Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/

#import <Foundation/Foundation.h>

#import <JDCloudOCSDKHttpdns/HttpdnsExecutor.h>


/// 查询httpdns账户的基本信息
@implementation  HttpdnsGetAccountInfoExecutor

-(id) initWithJDCloudClient:(HttpdnsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/accountInfo";
    return self;
}
@end

/// 添加域名。&lt;br&gt;
   /// 可以添加顶级域名除外的多级域名。
   /// 
@implementation  HttpdnsAddDomainsExecutor

-(id) initWithJDCloudClient:(HttpdnsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/domain/addDomain";
    return self;
}
@end

/// 删除域名
@implementation  HttpdnsDelDomainsExecutor

-(id) initWithJDCloudClient:(HttpdnsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/domain/delDomain";
    return self;
}
@end

/// 创建httpdns账户
@implementation  HttpdnsCreateAccountExecutor

-(id) initWithJDCloudClient:(HttpdnsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/account/createAccount";
    return self;
}
@end

/// 查询使用httpdns服务的域名
@implementation  HttpdnsGetDomainsExecutor

-(id) initWithJDCloudClient:(HttpdnsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/domain";
    return self;
}
@end

/// 查询用户名下httpdns的账户ID
@implementation  HttpdnsGetAccountIdExecutor

-(id) initWithJDCloudClient:(HttpdnsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"GET";
    self.url = @"/regions/{regionId}/account";
    return self;
}
@end

/// 创建，启用，禁用httpdns服务密钥
@implementation  HttpdnsOperateKeyExecutor

-(id) initWithJDCloudClient:(HttpdnsClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/account/operateKey";
    return self;
}
@end
